#!/usr/bin/env python3

import rospy
from DrRobotController_six_axes_can.msg import robot_instantiation
# import DrRobotController_six_axes as dr

def callback(data):
    import DrRobotController_six_axes as dr
    dr.robot_instantiation(id_num=data.id_num)
    rospy.loginfo("robot_instantiation_node")


def listener():
    rospy.init_node("robot_instantiation", anonymous=True)
    rospy.Subscriber("robot_instantiation", robot_instantiation, callback)
    rospy.spin()


if __name__ == '__main__':
    listener()

